package com.levine.base_libs.adapter;

import android.content.Context;

import com.chad.library.adapter.base.BaseMultiItemQuickAdapter;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.levine.base_libs.entity.BaseME;

import java.util.List;

public abstract class BaseRVAdapter extends BaseMultiItemQuickAdapter<BaseME, BaseViewHolder> {
    public Context context;

    public BaseRVAdapter(Context context, List<BaseME> data) {
        super(data);
        this.context = context;
//        openLoadAnimation(BaseQuickAdapter.SLIDEIN_LEFT);
    }

    @Override
    protected void convert(BaseViewHolder viewHolder, BaseME dataHolder) {
        fillData(viewHolder, dataHolder);
    }

    public abstract void fillData(BaseViewHolder helper, BaseME dataHolder);
}
